#pragma once
#include <QMainWindow>
#include <QTimer>
#include <QWebEngineView>
#include <QWebEngineProfile>
#include <QWebEngineSettings>
#include <QWebChannel>
#include "webclass.h"
#include <QJsonObject>

class Test : public QMainWindow {
    Q_OBJECT

public:
    Test(QWidget* parent = nullptr);
    ~Test();

private:
    void initEcharts();

private:
    QTimer *m_timer;
    QWebEngineView* view;
    QWebEngineProfile* profile;
    QWebEngineSettings *webSetting;
    QWebChannel *channel;
    WebClass *webobj;
    QJsonObject json;
};